cmake_minimum_required(VERSION 3.10)
project(StereoDepthDemo)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(OpenCV REQUIRED)

include_directories(${OpenCV_INCLUDE_DIRS} include)

add_executable(capture_chessboard src/capture_chessboard.cpp src/utils.cpp)
target_link_libraries(capture_chessboard ${OpenCV_LIBS})

add_executable(stereo_calib src/stereo_calib.cpp src/utils.cpp)
target_link_libraries(stereo_calib ${OpenCV_LIBS})

add_executable(stereo_depth src/stereo_depth.cpp src/utils.cpp)
target_link_libraries(stereo_depth ${OpenCV_LIBS} stdc++fs)
